package com.ychong.ychongwidget.ui

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.ychong.library.dialog.MessageDialog
import com.ychong.ychongwidget.R
import com.ychong.ychongwidget.databinding.ActivityMessageDialogBinding

class MessageDialogActivity : AppCompatActivity(){
    private lateinit var binding: ActivityMessageDialogBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.activity_message_dialog)
        binding.confirmTipsBtn.setOnClickListener{
            val dialog = MessageDialog(this)
                .setMsg("您想清楚了吗？")
                .setMsgSize(20f)
                .build()
        }
    }
}